﻿using System;
using System.Collections.Generic;
using System.Text;

namespace myie.code.pharaoh.com
{
    class Log
    {
        private static string _logFile;
        private static string logFile
        {
            get
            {
                if(_logFile==null)
                {
                    _logFile=System.IO.Path.Combine(System.Windows.Forms.Application.StartupPath,DateTime.Now.ToShortDateString()+".log");
                }
                return _logFile;
                
            }
        }
        public static void LogInfo(string msg)
        {
            System.IO.File.AppendAllText(logFile, "\n" + DateTime.Now.ToString() + " " + msg);
        }
    }
}
